FROM bitnami/java:17
#时区
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' >/etc/timezone
#中文乱码
ENV  LANG="C.UTF-8"
#JVM参数
#ENV JAVA_OPTS="-Xms2g -Xmx2g -XX:MetaspaceSize=1g -XX:MaxMetaspaceSize=1g -XX:+UseG1GC -XX:+ExitOnOutOfMemoryError -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=./ -XX:+PrintGC -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCDateStamps -XX:+PrintHeapAtGC -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=30M -Xloggc:./gc.log"
ADD target/app-exec.jar /app.jar
ENTRYPOINT ["/bin/sh","-c","java ${JAVA_OPTS} -jar /app.jar"]
